DX11 GET BUFFER BOOLEAN

Returns the boolean value stored at the specified position in the given buffer.
Bear in mind that booleans are stored using 32-bits since that's how the GPU handles them, so make sure to update your offsets accordingly.
The three-argument version is only used by structured buffers; array- and byte address buffers will ignore the offsetInElement argument.

  Syntax
Return Boolean = DX11 GET BUFFER BOOLEAN(buffer, offset, [offsetInElement])
  Parameters
buffer
Dword
The buffer to read the boolean value from.
offset
Dword
The offset within the buffer to read the value from. If called for a structured buffer or an array buffer, this corresponds to the element id to get. For a byte address buffer it is the offset in bytes from the beginning of the buffer. Note that byte address buffers can only be read from at 4-byte aligned addresses by the GPU.
[Optional] offsetInElement
Dword
The offset within the current struct of the given element. Only relevant for structured buffers to allow writing struct entries with multiple data types. Ignored for all other buffer types.

  Returns

The boolean value stored at the given offset in the buffer.

  See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories